home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000278_news@columbia.edu _Thu May 4 09:37:09 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id JAA11071
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 4 May 2000 09:37:08 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA03175
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 4 May 2000 09:37:08 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id JAA04530
  10.     for kermit.misc@watsun.cc.columbia.edu; Thu, 4 May 2000 09:20:30 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: jaltman@columbia.edu (Jeffrey Altman)
  13. Subject: Re: kermit code to parse .authinfo files?
  14. Date: 4 May 2000 13:20:28 GMT
  15. Organization: Columbia University
  16. Message-ID: <8ertes$4df$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <jqazoq6cx01.fsf@msdw.com>,
  20. Russell McManus  <russell.mcmanus@msdw.com> wrote:
  21. : Does anyone have a snippet of Kermit code they would be willing to
  22. : share to parse .authinfo files?  These files are used to store
  23. : passwords in home directories.  As such, they are not the most secure
  24. : thing going, but as long as the .authinfo file is owner-only
  25. : permissions, it's not quite as bad.
  26. : A .authinfo file looks like this:
  27. : machine freddy.blah.com login russe password s0mepassw0rd
  28. : machine pubdiscuss.blah.com login russe password s0mepassw0rd
  29. : machine usenet.blah.com login russe password s0mepassw0rd
  30.  
  31. This can easily be done using the \Fsplit() function:
  32.  
  33. \fsplit(s1,&a,s2,s3) - Assign string words to an array.
  34.   s1 = String
  35.   &a = array designator
  36.   s2 = optional break set.
  37.   s3 = optional include set.
  38.   Break and include sets are as in \fword().
  39.   All arguments are optional.  If \&a[] not declared, it is created.
  40. Returns integer:
  41.   Number of words assigned.
  42.  
  43. But lets talk about the security of these files.  Clearly these
  44. files are not secure if anyone other than the user is able to read 
  45. them other than the owner.  But what about 'root'?
  46.  
  47. If the machine is hacked, then all the passwords in .authinfo are captured
  48. by the hacker.  This is different than regular password files which only
  49. store the end result of some computation.
  50.  
  51. What about if the home directories are stored on a file system mounted
  52. by NFS?  Every time the file is read it will be transmitted across the
  53. network as clear text.  Again, all of the passwords are now publicly
  54. available.
  55.  
  56. These files are dangerous and should not be used.
  57.  
  58.  
  59.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  60.                  The Kermit Project * Columbia University
  61.               612 West 115th St #716 * New York, NY * 10025
  62.   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org